package com.trainbook.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 车次座位表
 * </p>
 *
 * @author Dempsey
 * @since 2020-11-27
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@TableName("seat")
@ApiModel(value = "Seat", description = "车次座位表")
public class Seat implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "座位等级")
    @TableField("level")
    private Integer level;

    @ApiModelProperty(value = "有关车次")
    @TableField("trainId")
    private Integer trainId;

    @ApiModelProperty(value = "共计座位")
    @TableField("all_num")
    private Integer allNum;

    @ApiModelProperty(value = "剩余座位")
    @TableField("last_num")
    private Integer lastNum;


}
